#ifndef __TEACHER_H_
#define __TEACHER_H_

#include "student.h"
#include <stdbool.h>

struct Teacher
{
    int id;
    char Name[20];
    Stu s[10];
    int size;
};

typedef struct Teacher Teach;

void InitTeacher(Teach *t,int id,const char *name);

void PrintTeach(Teach *t);

void AddStudent(Teach *t,int StuId,const char *StuName);

// void RemoveStudent(Teach *t,int index);    //按照学号删除学生

// void RemoveStubyName(Teach *t,const char *name);    //按照姓名删除学生

void RemoveStudent(Teach *t,void *data,bool(*IsEqual)(void*,void*));  // 按照学号或姓名删除学生

Stu* FindStudent(Teach *t,void *data,bool(*IsEqual)(void*,void*));

#endif